package com.roncoo.menu.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (TMenu)表实体类
 *
 * @author makejava
 * @since 2021-03-22 14:41:48
 */
@SuppressWarnings("serial")
public class TMenu extends Model<TMenu> {

    private Integer mid;
    //子菜单 对应父菜单的id是啥
    private Integer mpid;

    private String mname;

    private String murl;

    private String component;

    private Object gmtcreate;

    private Object gmtmodified;


    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Integer getMpid() {
        return mpid;
    }

    public void setMpid(Integer mpid) {
        this.mpid = mpid;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public String getMurl() {
        return murl;
    }

    public void setMurl(String murl) {
        this.murl = murl;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public Object getGmtcreate() {
        return gmtcreate;
    }

    public void setGmtcreate(Object gmtcreate) {
        this.gmtcreate = gmtcreate;
    }

    public Object getGmtmodified() {
        return gmtmodified;
    }

    public void setGmtmodified(Object gmtmodified) {
        this.gmtmodified = gmtmodified;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.mid;
    }
}
